package gae.testjig.dto;

import java.util.LinkedList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Contact {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key contactKey;

	@Persistent private Key organizationKey; // this is the "parent" organization
	@Persistent private String name;
	@Persistent private String phoneNumber;
	@Persistent private LinkedList<Key> contactGroups;

	public Key getContactKey() {
		return contactKey;
	}
	public void setContactKey(Key contactKey) {
		this.contactKey = contactKey;
	}
	public void setOrganizationKey(Key organizationKey) {
		this.organizationKey = organizationKey;
	}
	public Key getOrganizationKey() {
		return organizationKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public void setContactGroups(LinkedList<Key> contactGroups) {
		this.contactGroups = contactGroups;
	}
	public LinkedList<Key> getContactGroups() {
		return contactGroups;
	}

}
